package cn.mhome.merchant.server.business.service;

import java.util.List;


import cn.mhome.merchant.entity.business.param.BusinessParam;
import cn.mhome.merchant.entity.business.result.BusinessResult;
import cn.mhome.merchant.entity.common.result.CommonResult;
import cn.mhome.merchant.entity.common.result.Pager;

public interface BusinessService {

	/**
	 * 查询列表
	 * @param classParam
	 * @return
	 */
	List<BusinessResult> findForList(BusinessParam businessParam);
	
	
	/**
	 * 查询分页
	 * @param classParam
	 * @return
	 */
	Pager<BusinessResult> findForPage(BusinessParam businessParam);
	
	/**
	 * 保存 新增和修改
	 * @param classParam
	 * @return
	 */
	CommonResult save(BusinessParam businessParam);
	
	/**
	 * 删除
	 * @param classParam
	 * @return
	 */
	CommonResult delete(BusinessParam businessParam);
	
	/**
	 * 修改状态
	 * @param businessParam
	 * @return
	 */
	CommonResult changeState(BusinessParam businessParam);
	
	/**
	 * 保存关系
	 * @param businessParam
	 * @return
	 */
	CommonResult saveRelation(BusinessParam businessParam);


	/**
	 * 增加访问次数
	 * @param businessParam
	 * @return
	 */
	CommonResult visit(BusinessParam businessParam);
}
